{extend name="admin@index_layout"/}
{block name="main"}
<style type="text/css">
    .childrenBody {
        background: #fff;
    }
</style>
<!--<style type="text/css">-->
<!--    .layui-layer-page .layui-layer-content {-->
<!--        overflow: inherit;-->
<!--    }-->
<!--</style>-->
<div class="layui-card">
    <div class="layui-card-header">申请信息列表</div>
    <div class="layui-card-body">
        <table class="layui-hide" id="currentTable" lay-filter="currentTable"></table>
    </div>
</div>


{/block}
{block name="script"}
<script>
    layui.use(['table', 'yznTable'], function () {
        // var table = layui.table,
        //     $ = layui.$,
        //     form = layui.form,
        //     table = layui.table,
        var table = layui.yznTable;

        var init = {
            table_elem: '#currentTable',
            add_url: "{:url('add',['catid'=>$catid])}",
            delete_url: "{:url('del',['catid'=>$catid])}",
            modify_url: '{:url("listorder",["catid"=>$catid])}',
        };
        table.render({
            init: init,
            id: 'currentTable',
            elem: '#currentTable',
            url: '{:url("index")}',
            // searchFormTpl:,
            toolbar: ['refresh',
                // [{
                //     text: '添加',
                //     url: init.add_url,
                //     method: 'open',
                //     icon: 'iconfont icon-add',
                //     class: 'layui-btn layui-btn-normal layui-btn-sm',
                //     extend: 'data-full="true"',
                // }],
            ],
            cols: [
                [
                    {type: 'checkbox', fixed: 'left'},
                    {field: 'id', width: 60, title: 'ID'},
                    {field: 'name', align: "center", title: '姓名'},
                    {field: 'phone', align: "center", title: '联系电话',},
                    {field: 'province', align: "center", title: '省'},
                    {field: 'city', align: "center", title: '市',},
                    {field: 'area', align: "center", title: '区',},
                    {field: 'address', width: 100,align: "center", title: '详细地址', search: false},
                    {field: 'create_time', align: "center",title: '提交时间',  search: false},
                ]
            ],
            page: {}
        });
        yznTable.bindevent();
    });
</script>
{/block}